package com.qf.osminventory.center.controller;


import com.qf.common.core.common.R;
import com.qf.common.core.entity.Inventory;
import com.qf.osminventory.center.param.InventoryParam;
import com.qf.osminventory.center.service.InventoryService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/Inventory")
public class InventoryController {
    @Resource
    private InventoryService inventoryService;

    @RequestMapping("/add")
    public R addCommodity(@RequestBody InventoryParam inventoryParam){
        inventoryService.addCommodity(inventoryParam);
        return null;
    }

}
